﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Negro
{
    public class AgregarBusiness
    {

        public void guardar(productos bean)
        {
            AgregarDAO dao = new AgregarDAO();
            dao.guardar(bean);
        }

        public IEnumerable<ProductosDTO> consulta()
        {
            AgregarDAO dao = new AgregarDAO();

            IEnumerable<ProductosDTO> list = dao.consulta();

            return list;
        }
    }
}